package com.barunsw.bwf.ems.common.model;

import com.fasterxml.jackson.databind.ObjectMapper;

public class AlarmMessage {
	private String sev;
	private String alarmId;
	private String loc;
	private String alarmMsg; 
	private String eventTime;
	private String ackUser;
	private String ackTime;
	
	public String getSev() {
		return sev;
	}
	
	public void setSev(String sev) {
		this.sev = sev;
	}

	public String getAlarmId() {
		return alarmId;
	}

	public void setAlarmId(String alarmId) {
		this.alarmId = alarmId;
	}

	public String getLoc() {
		return loc;
	}

	public void setLoc(String loc) {
		this.loc = loc;
	}

	public String getAlarmMsg() {
		return alarmMsg;
	}

	public void setAlarmMsg(String alarmMsg) {
		this.alarmMsg = alarmMsg;
	}

	public String getEventTime() {
		return eventTime;
	}

	public void setEventTime(String eventTime) {
		this.eventTime = eventTime;
	}

	public String getAckUser() {
		return ackUser;
	}

	public void setAckUser(String ackUser) {
		this.ackUser = ackUser;
	}

	public String getAckTime() {
		return ackTime;
	}

	public void setAckTime(String ackTime) {
		this.ackTime = ackTime;
	}
	
	@Override
	public String toString() {
		String str = super.toString();
		try {
			ObjectMapper mapper = new ObjectMapper();
			str = mapper.writeValueAsString(this);
		}
		catch ( Exception ex ) {
		}
		
		return str;
	}
}
